﻿using System.Web.Mvc;
using Kendo.Mvc;

namespace ProjectFootball.MVC.Controllers
{
    public class MenuController : Controller
    {
        public ActionResult SiteMapBinding()
        {
            if (!SiteMapManager.SiteMaps.ContainsKey("ProjectFootball"))
                SiteMapManager.SiteMaps.Register<XmlSiteMap>("ProjectFootball", sitmap => sitmap.LoadFrom("~/ProjectFootball.sitemap"));
            
            return View();
        }

    }
}
